﻿using System.Text.Json.Serialization;

namespace DimensionsHelper.Client.WinUi.Models;

public class ProjectPresetOptions
{
    public string Root { get; set; } = string.Empty;

    public List<string> Preset { get; set; } = [];
}

public class PresetOptions
{
    public Dictionary<string, ProjectPresetOptions> Projects { get; set; } = [];
}

[JsonSourceGenerationOptions(
    IgnoreReadOnlyFields = true,
    IgnoreReadOnlyProperties = true,
    PropertyNameCaseInsensitive = true,
    WriteIndented = true)]
[JsonSerializable(typeof(PresetOptions))]
public partial class PresetOptionsJsonContext : JsonSerializerContext
{
}